package com.ruoyi.project.relation.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.alibaba.fastjson.annotation.JSONField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 业务链路对象 business_link
 *
 * @author wb
 * @date 2021-03-30
 */
public class BusinessLinkEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String TABLE_NAME = "business_link";

    /** 主键 */
    private Long businessLinkId;

    /** 来源业务ID */
    @Excel(name = "来源业务ID")
    private Long sourceOwnerId;

    /** 所属业务名称 */
    @Excel(name = "所属业务名称")
    private String sourceOwnerName;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String sourceOwnerType;

    /** 祖级业务ID */
    @Excel(name = "祖级业务ID")
    private Long ancestorOwnerId;

    /** 祖级业务名称 */
    @Excel(name = "祖级业务名称")
    private String ancestorOwnerName;

    /** 祖级业务类型 */
    @Excel(name = "祖级业务类型")
    private String ancestorOwnerType;

    /** 级别 */
    @Excel(name = "级别")
    private Integer level;

    /** 自链接标识 */
    @Excel(name = "自链接标识")
    private Integer selfLinkFlag;

    /** 删除标志（0代表存在 1代表删除） */
    private Integer delFlag;

    public void setBusinessLinkId(Long businessLinkId)
    {
        this.businessLinkId = businessLinkId;
    }

    public Long getBusinessLinkId()
    {
        return businessLinkId;
    }
    public void setSourceOwnerId(Long sourceOwnerId)
    {
        this.sourceOwnerId = sourceOwnerId;
    }

    public Long getSourceOwnerId()
    {
        return sourceOwnerId;
    }
    public void setSourceOwnerName(String sourceOwnerName)
    {
        this.sourceOwnerName = sourceOwnerName;
    }

    public String getSourceOwnerName()
    {
        return sourceOwnerName;
    }
    public void setSourceOwnerType(String sourceOwnerType)
    {
        this.sourceOwnerType = sourceOwnerType;
    }

    public String getSourceOwnerType()
    {
        return sourceOwnerType;
    }
    public void setAncestorOwnerId(Long ancestorOwnerId)
    {
        this.ancestorOwnerId = ancestorOwnerId;
    }

    public Long getAncestorOwnerId()
    {
        return ancestorOwnerId;
    }
    public void setAncestorOwnerName(String ancestorOwnerName)
    {
        this.ancestorOwnerName = ancestorOwnerName;
    }

    public String getAncestorOwnerName()
    {
        return ancestorOwnerName;
    }
    public void setAncestorOwnerType(String ancestorOwnerType)
    {
        this.ancestorOwnerType = ancestorOwnerType;
    }

    public String getAncestorOwnerType()
    {
        return ancestorOwnerType;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setSelfLinkFlag(Integer selfLinkFlag)
    {
        this.selfLinkFlag = selfLinkFlag;
    }

    public Integer getSelfLinkFlag()
    {
        return selfLinkFlag;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    public ToStringBuilder toStringBuilder(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("businessLinkId", getBusinessLinkId())
                .append("sourceOwnerId", getSourceOwnerId())
                .append("sourceOwnerName", getSourceOwnerName())
                .append("sourceOwnerType", getSourceOwnerType())
                .append("ancestorOwnerId", getAncestorOwnerId())
                .append("ancestorOwnerName", getAncestorOwnerName())
                .append("ancestorOwnerType", getAncestorOwnerType())
                .append("level", getLevel())
                .append("selfLinkFlag", getSelfLinkFlag())
                .append("createUserId", getCreateUserId())
                .append("createTime", getCreateTime())
                .append("updateUserId", getUpdateUserId())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                ;
    }


    @Override
    public String toString() {
        return toStringBuilder().toString();
    }
}
